<?php

namespace App\Dao;
use App\Models\Topics;
use App\Models\Donates;
use EasyWeChat\Factory;
/**
 * 主题活动
 *
 * @author Yh 20201201
 */
class TopicDao extends Topics
{
    public static function finish_check(){
        $unfinish_Topics =  Topics::where('status','!=',4)->get(['id','end_date','start_date','status','max_num','joins']);
        $unfinish_Topics->each(function ($topic) {
            self::unpay_cancel($order);
        });
    }
    public static function refund($topic){
        
    }
}
